Eisenberg & McGuire algorithm